
var db = require("../../javascript/mysql");
var mysql = new db.mysqlClient("accident");
function genProductInfo() {
    plan = {
        planA: {
            "name":"全家福意外险2020版",
            "company":"中国人民保险",
            "year": "0-65",
            "days": "1y",
            "people_count": "1",
            "accident_death": "100000",
            "accident_medical": "5000",
            "accident_hospital": "1800",
            "price": "99.00"
        },
        planB: {
            "name":"全家福意外险2020版",
            "company":"中国人民保险",
            "year": "0-65",
            "days": "1y",
            "people_count": "1",
            "accident_death": "300000",
            "accident_medical": "10000",
            "accident_hospital": "4500",
            "price": "259.00"
        },
        planC: {
            "name":"全家福意外险2020版",
            "company":"中国人民保险",
            "year": "0-65",
            "days": "1y",
            "people_count": "1",
            "accident_death": "500000",
            "accident_medical": "20000",
            "accident_hospital": "9000",
            "price": "338.00"
        }
    }
    for( k in plan ){
        data = plan[k]
        mysql.insertData( data );
    }
    mysql.close();
}
